<template>
  <div class="demo-container">
    <h1>AI代码平台 - 登录/注册页面演示</h1>
    <p>点击下面的按钮查看新设计的登录/注册页面：</p>
    
    <div class="demo-buttons">
      <router-link to="/user/auth" class="demo-btn">
        🚀 体验新版登录/注册页面
      </router-link>
      
      <router-link to="/user/login" class="demo-btn secondary">
        📱 原版登录页面（对比）
      </router-link>
    </div>
    
    <div class="features-preview">
      <h2>✨ 新版特性预览</h2>
      <div class="features-grid">
        <div class="feature-card">
          <div class="feature-icon">🎨</div>
          <h3>科技感设计</h3>
          <p>深空蓝配色方案，量子紫强调色，营造未来科技氛围</p>
        </div>
        
        <div class="feature-card">
          <div class="feature-icon">⚡</div>
          <h3>动态粒子背景</h3>
          <p>浮动代码片段粒子系统，实时展示编程元素</p>
        </div>
        
        <div class="feature-card">
          <div class="feature-icon">🤖</div>
          <h3>AI助手交互</h3>
          <p>智能助手实时对话，表单提交时点头反馈</p>
        </div>
        
        <div class="feature-card">
          <div class="feature-icon">🔐</div>
          <h3>安全体验</h3>
          <p>密码强度可视化，加密粒子效果，全息键盘投影</p>
        </div>
        
        <div class="feature-card">
          <div class="feature-icon">📱</div>
          <h3>响应式设计</h3>
          <p>完美适配桌面和移动端，粒子密度自动调节</p>
        </div>
        
        <div class="feature-card">
          <div class="feature-icon">✨</div>
          <h3>微交互动效</h3>
          <p>星光飞散效果，量子旋转加载，全息边框动画</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
// 演示页面逻辑
</script>

<style scoped>
.demo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1 {
  text-align: center;
  color: #1e293b;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #9d4edd, #43aa8b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  text-align: center;
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.demo-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #9d4edd, #43aa8b);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
}

.demo-btn.secondary {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.demo-btn.secondary:hover {
  box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

.features-preview {
  margin-top: 3rem;
}

.features-preview h2 {
  text-align: center;
  color: #1e293b;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.15);
  border-color: #9d4edd;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.feature-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .demo-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .features-preview h2 {
    font-size: 1.5rem;
  }
}
</style>
